<?php
namespace app\admin\validate;
use think\Validate;

class OrderValidate extends Validate {
    protected $rule =   [
        'name'  => 'require',
        'idcard' => 'require',
        'phone' => 'require',
        'hospital' => 'require',
        'message' => 'max:255',
        'info' => 'max:255',
    ];

    protected $message  =   [
        'name.require' => '体检人姓名不能为空',
        'idcard.require'   => '体检人身份证号不能为空',
        'phone.require'   => '体检人联系电话不能为空',
        'hospital.require'   => '预约的医院不能为空',
        'message.max' => '病情描述长度超出限制',
        'info.max' => '备注说明长度超出限制',
    ];

}
